package com.bootcamp.javase.inner.computer;

/**
 * @program: InnerCode
 * @description: a conputer
 * @author: Keyu Li
 * @create: 2021-09-03 20:37
 **/

public class ComputeImpl implements ICompute {

    @Override
    public double add(double a, double b) {
        return a + b;
    }

    @Override
    public double subtract(double a, double b) {
        return a - b;
    }

    @Override
    public double multiply(double a, double b) {
        return a * b;
    }

    @Override
    public double divide(double a, double b) {
        return a / b;
    }
}
